import request from '@/utils/request'

export function login(data) {
  return request({
    url: '/jbl-user-center/api/admin/v1/sysUser/login',
    method: 'post',
    data
  })
}

export function getInfo(token) {
  return request({
    url: '/vue-element-admin/user/info',
    method: 'get',
    params: { token }
  })
}

export function logout() {
  return request({
    url: '/jbl-user-center/api/common/v1/loginOut',
    method: 'get'
  })
}

// 获取用户菜单
export function getMenuList(query) {
  return request({
    url: '/jbl-user-center/api/admin/v1/sysPermission/getUserCascadeList',
    method: 'get',
    params: query
  })
}
